    $(function(){
        berserker.addView({
            name:'hzmy',
            tpl:'tpl_hzmy',
            dataURL:'/api/hzmy.json',
            beforeRender:function(host){
                var chartEvent={};
                chartEvent['hzmy-chart1'] = {
                    plotOptions: {
                        series:{
                            cursor: 'pointer',
                            point: {
                                //events: {
                                    //click: function() {}
                                //}
                            }
                        }
                    }
                }
                chartEvent['hzmy-chart2']={
                    plotOptions: {
                        pie: {
                            allowPointSelect: true,cursor: 'pointer',
                            showInLegend:true,
                            dataLabels: {
                                enabled: true,
                                color: '#000000',
                                connectorColor: '#000000',
                                formatter: function() {
                                    return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
                                }
                            }
                        }
                    }
                }
                host.data('chartEvent',chartEvent);
            },
            done:function(host){
                //绑定tab view
                //$(".tabview > ul",host).tabs(".tabview > .tabContent");

            }
        })
    })
